﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
namespace CMN.Entity
{
    ///<summary>
    ///Normal_KeywordEntity实体类(关键词记录)
    ///</summary>
    [Serializable]
    public partial class Normal_KeywordEntity:ISerializable   
    {

         public Normal_KeywordEntity()
        {

        }
         public Normal_KeywordEntity(SerializationInfo info, StreamingContext content)
        {

            Id = info.GetInt32("Id");
            IsHot = info.GetInt16("IsHot");
            Keyword = info.GetString("Keyword");
            SearchNum = info.GetInt32("SearchNum");
            KeyWordUrl = info.GetString("KeyWordUrl");
           
        }


        public virtual void GetObjectData(SerializationInfo info, StreamingContext content)
        {
           
            info.AddValue("Keyword", Keyword);
            info.AddValue("Id", Id);
            info.AddValue("IsHot", IsHot);
            info.AddValue("SearchNum", SearchNum);
            info.AddValue("KeyWordUrl", KeyWordUrl);
           
        }
        #region "Private Variables"
        private DataTableAction _DataTable_Action;  // 操作方法 Insert:增加 Update:修改 Delete:删除
        private Int32 _Id = 0; // 递增Id
        private String _Keyword = ""; // 分词
        private Int32 _SearchNum = 0; // 搜索次数
        private Int32 _IsHot = 0; // 是否热门关键词
        private string _KeyWordUrl = "";
        #endregion

        #region "Public Variables"
        ///<summary>
        /// 操作方法 Insert:增加 Update:修改 Delete:删除
        ///</summary>
        public DataTableAction DataTable_Action
        {
            set { this._DataTable_Action = value; }
            get { return this._DataTable_Action; }
        }
        /// <summary>
        /// 递增Id
        /// </summary>
        public Int32 Id
        {
            set { this._Id = value; }
            get { return this._Id; }
        }
        /// <summary>
        /// 分词
        /// </summary>
        public String Keyword
        {
            set { this._Keyword = value; }
            get { return this._Keyword; }
        }
        /// <summary>
        /// 搜索次数
        /// </summary>
        public Int32 SearchNum
        {
            set { this._SearchNum = value; }
            get { return this._SearchNum; }
        }
        /// <summary>
        /// 是否热门关键词
        /// </summary>
        public Int32 IsHot
        {
            set { this._IsHot = value; }
            get { return this._IsHot; }
        }

        /// <summary>
        /// 链接地址
        /// </summary>
        public string KeyWordUrl
        {
            set { this._KeyWordUrl = value; }
            get { return this._KeyWordUrl; }
        }
        #endregion
    }
}
